import {createRouter, createWebHistory} from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/doctor',
            component: import('@/views/Docker.vue'),
            children: []
        },

        {
            path: '/user',
            component: import('@/views/User.vue'),
            children: []
        },


        {
            path: '/login',
            component: import('@/views/Login.vue'),
            children: []
        },

        {
            path: '/pay',
            component: import('@/views/Pay.vue'),
            children: []
        },
        {
            path: '/a',
            component: import('@/views/a.vue'),
            children: []
        },

        {
            path: '/detail',
            component: import('@/views/detail.vue'),
            children: []
        },

        {
            path: '/illUpload',
            component: import('@/views/illUpload.vue'),
            children: []
        },
    
          {
            path: '/myfile',
            component: import('@/views/myfile.vue'),
            children: []
        },

        {
            path: '/file',
            component: import('@/views/FileUpload.vue'),
            children: []
        },


        {
            path: '/admin',
            component: import('@/views/admin/Admin.vue'),
            children: [
                {
                    path: '',
                    component: import('@/views/admin/index.vue'),
                },

                {
                    path: '/admin/orders',
                    component: import('@/views/admin/orders.vue'),
                },


                {
                    path: '/admin/course',
                    component: import('@/views/admin/course.vue'),
                },

                {
                    path: '/admin/illness',
                    component: import('@/views/admin/illness.vue'),
                },


                {
                    path: '/admin/account',
                    component: import('@/views/admin/account.vue'),
                },

                {
                    path: '/admin/doctor',
                    component: import('@/views/admin/docker.vue'),
                },

                {
                    path: '/admin/vip',
                    component: import('@/views/admin/vip.vue'),
                },
                {
                    path: '/admin/system',
                    component: import('@/views/admin/system.vue'),
                },
                {
                    path: '/admin/hospital',
                    component: import('@/views/admin/hospital.vue'),
                },

                {
                    path: '/admin/department',
                    component: import('@/views/admin/department.vue'),
                },
                {
                    path: '/admin/hospitalDepartment',
                    component: import('@/views/admin/HospitalDepartment.vue'),
                },

                {
                    path: '/admin/courseContent',
                    component: import('@/views/courseContenr.vue'),
                    children: []
                },
        
                {
                    path: '/admin/question',
                    component: import('@/views/examination/quetion.vue'),
                    children: []
                },
        
                {
                    path: '/admin/paper',
                    component: import('@/views/examination/paper.vue'),
                    children: []
                },
        
                {
                    path: '/admin/answerStatistic',
                    component: import('@/views/examination/answerStatistic.vue'),
                    children: []
                },
        


            ]

        },



    ]
})

export default router
